/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using DOAN.DAL;
using DOAN.DO;
/// <summary>
/// Summary description for ThanhvienBL
/// </summary>
namespace DOAN.BL 
{
    public class ThanhvienBL 
    {
    	#region Private Variables
		ThanhvienDAL objThanhvienDAL;
		#endregion
		
        #region Public Constructors
        public ThanhvienBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objThanhvienDAL=new ThanhvienDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(ThanhvienDO objThanhvienDO)
        {
            return objThanhvienDAL.Insert(objThanhvienDO);
        }

        public int Update(ThanhvienDO objThanhvienDO)
        {
             return objThanhvienDAL.Update(objThanhvienDO);

        }
        public DataTable GetGV()
        {
            return objThanhvienDAL.GetGV();
        }

        public DataTable GetTV()
        {
            return objThanhvienDAL.GetTV();
        }
        public int Delete(ThanhvienDO objThanhvienDO)
        {
             return objThanhvienDAL.Delete(objThanhvienDO);

        }

         public int DeleteAll()
        {
             return objThanhvienDAL.DeleteAll();
        }

         public ThanhvienDO Login(string tk,string mk)
         {
             return objThanhvienDAL.login(tk,mk);
         }

         public DataTable Select2(ThanhvienDO objThanhvienDO)
         {
             return objThanhvienDAL.Select2(objThanhvienDO);
         }

        public ThanhvienDO Select(ThanhvienDO objThanhvienDO)
        {
            return objThanhvienDAL.Select(objThanhvienDO);
        }

        public DataTable SelectByEmail(string email)
        {
            return objThanhvienDAL.SelectByEmail(email);
        }

        public ArrayList SelectAll1( )
        {
         return objThanhvienDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objThanhvienDAL.SelectAll();
        }


     
#endregion          
        public DataTable TimKiem(int tt, string tk)
        {
            return objThanhvienDAL.TimKiem(tt, tk);
        }

        public DataTable GetAllLop()
        {
            return objThanhvienDAL.GetAllLop();
        }

        public ThanhvienDO SelectobjByEmail(string email)
        {
            return objThanhvienDAL.SelectobjByEmail(email);
        }

        public DataTable SelectByLop(string lop)
        {
            return objThanhvienDAL.SelectByLop(lop);
        }
    }

}
